package com.etc.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.etc.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Author kalista
 * @Description
 * @Date 2021/2/26  9:20
 **/

@Mapper
public interface UserMapper  extends BaseMapper<User> {

    @Select("select * from t_user where username = #{username}")
    List<User> selectUsername(@Param("username") String username);




    List<User> findByUserName(@Param("username") String username);



    int update(@Param("user") User user);

}
